import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import 'amfe-flexible'
import './vant'
import ZczyUpload from '@zczy/upload-h5'
import VConsole from 'vconsole'
import elementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/reset.css'
// 国际化
import i18n from './locales'
import $config  from '@/utils/config'
import permission from '@/directive/permission/index'
Vue.prototype.$config = $config
//替换上传组件
Vue.use(ZczyUpload)
// 权限指令
Vue.use(permission)
 Vue.use(elementUi,{size:'small'})
Vue.config.productionTip = false
import CommonHeader from './components/CommonHeader.vue'
import areaSelected from './components/areaSelected.vue'
// 注册全局组件
Vue.component('CommonHeader', CommonHeader);
Vue.component('areaSelected', areaSelected);
// 非生产环境下面使用vConsole进行调试
// if (process.env.VUE_APP_NODE_ENV !== 'production') {
//   const vconsole = new VConsole()
//   console.info(`[vconsole] load success, version: ${vconsole.version}`)
// }


new Vue({
  router,
  store,
  i18n,
  render: (h) => h(App)
}).$mount('#app')
